/**
 * 帖子页的导航
 */

import {
  StackNavigator,
} from 'react-navigation';

import Topic from './topic';
import TopicEdit from './topicedit';
import ImagePreview from './imagepreview';
import ImagePreview2 from './imagepreview2';

const TopicNavigation = StackNavigator({
    Topic: {
      screen: Topic,
      // navigationOptions: ({navigation}) => ({
      //   //headerTitle: `【${navigation.state.params.name}】 版块`,
      //   headerRight: (
      //     <TouchableOpacity onPress={() => {navigation.navigate("TopicEdit")}}>
      //       <Text>进入</Text>
      //     </TouchableOpacity>
      //   )
      // })
    },
    TopicEdit: {
        screen: TopicEdit,
    },
    ImagePreview: {
      screen: ImagePreview2,
    }
}, {
  mode: "modal", 
  headerMode: "none",//写null不行
})

module.exports = TopicNavigation;